package gang.org.springframework.framework.context.annotatation;

import gang.org.springframework.framework.bean.GangAnnotatedBeanDefinition;
import gang.org.springframework.framework.bean.GangGenericBeanDefinition;
import gang.org.springframework.framework.core.type.classreading.GangMetadataReader;
import gang.org.springframework.framework.metadata.GangAnnotationMetadata;

/**
 * @Author：gang.chen
 * @Date：2023/7/27 13:42
 */
public class GangScannedGenericBeanDefinition extends GangGenericBeanDefinition implements GangAnnotatedBeanDefinition {

    private final GangAnnotationMetadata metadata;

    @Override
    public GangAnnotationMetadata getMetadata() {
        return null;
    }

    public GangScannedGenericBeanDefinition(GangMetadataReader metadataReader)
    {
        this.metadata = metadataReader.getAnnotationMetadata();
        setBeanClassName(this.metadata.getClassName());
        setResource(metadataReader.getResource());
    }
}
